package work5;
import java.util.Scanner;

public class ex2 {
    public static void main(String[] args) {
        double a;
        int [] array = new int[2];
        Scanner input = new Scanner(System.in);
        try {
            System.out.println("输入数字");
            a = input.nextDouble();
        }catch(Exception e){
            System.out.println("输入数字格式不匹配异常");
            e.printStackTrace();

        }
        try{
            array[2] =8;
        }catch (Exception e){
            System.out.println("数组溢出异常！");
            e.printStackTrace();
        }
        System.out.println("0501刘冰");
    }
}
